package com.ton.common.controller.order.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "订单创建接收对象")
public class PayOrderReq implements Serializable {

    @ApiModelProperty(name = "AppID", value = "AppID", required = true)
    @NotNull(message = "APPID不能为空")
    private String appId; //appID

    @ApiModelProperty(name = "APP名称", value = "APP名称", required = true)
    @NotNull(message = "App名称不能为空")
    private String appName; //app名称

    @ApiModelProperty(name = "订单金额", value = "订单金额", required = true)
    @NotNull(message = "订单金额不能为空")
    private Long amount; //金额

    @ApiModelProperty(name = "订单回调URL", value = "订单回调URL", required = true)
    @NotNull(message = "订单回调地址不能为空")
    private String callbackUrl; //回调URL

    @ApiModelProperty(name = "商家订单号", value = "商家订单号", required = true)
    @NotNull(message = "商家订单号不能为空")
    private String merchantOrderId; //商家订单号

    @ApiModelProperty(name = "货币类型 0=TRX 1=TRC", value = "货币类型 0=TRX 1=TRC", required = true)
    @NotNull(message = "货币类型不能为空")
    private Integer coinType; //货币类型

    @ApiModelProperty(name = "用户ID", value = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId; //用户id

    @ApiModelProperty(name = "备注信息", value = "备注信息")
    private String remark; //备注信息
}
